home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / cmln0885.arc / CROSST4.LTG < prev    next >
Text File  |  1986-02-27  |  512b  |  18 lines

  1. Crossthoughts Listing 4. 
  2.  
  3.  
  4. PP╠ codσ fo≥ thσ least-recently-useΣ (LRU⌐ pagσ replacemen⌠ ì
  5. algorithm
  6.  
  7. FUNCTION Selected_Page() return integer
  8.  
  9. BEGIN
  10.     IF Found 
  11.     THE╬  Updatσ timσ entry¼ iε thσ pagσ table¼ t∩ equa∞ systeφ ì
  12.         time return ()
  13.     ELSE
  14.         Search for table entry with least time value
  15.         return( Index pointing to entry with least time)
  16.     END IF
  17. END Selected_Page
  18.